export default {
  version: '1.0.0',
  props: {
    name: {
      type: String,
      require: true
    }
  },
  render(h) {
    const exact = this.$route && this.$route.name === this.name
    const { default: d } = this.$slots
    return exact ? h('div', d) : h('router-view')
  }
}
